<template>
	<view class="container">
		<view class="load">
			<image class="selectedImage" :src="selectedImage" mode="" v-if="selectedImage"></image>
			<view class="load-more" v-if="!selectedImage">
				<image src="/static/image/business/10.png" mode=""></image>
				<view class="loadtext">
					上传服务费电子发票
				</view>
			</view>
		</view>
		<view class="imgbtn">
			<button class="photo" @click="photo">相册</button>
			<button class="loadimg" @click="uploadImage">确认上传</button>
		</view>
	</view>
</template>

<script>
	import {
		uploading
	} from '@/common/mixins/uploading/uploading.js'

	export default {
		mixins: [uploading],
	};
</script>

<style scoped lang="scss">
	@import '@/common/sass/all/all.scss';

	.load {
		width: 679rpx;
		height: 400rpx;
		background-color: #fff;
		border-radius: 20rpx;
		margin-top: 24rpx;
		display: flex;
		align-items: center;
		justify-content: center;

		.selectedImage {
			width: 679rpx;
			height: 400rpx;
		}

		.load-more {
			display: flex;
			align-items: center;
			justify-content: center;
			flex-direction: column;
		}

		image {
			width: 78rpx;
			height: 69rpx;
			border-radius: 115rpx;
		}
	}

	.imgbtn {
		margin-top: 42rpx;
		display: flex;
		flex-direction: row;

		button {
			width: 325rpx;
			height: 91rpx;
			line-height: 91rpx;
			font-size: 32rpx;
			font-weight: 400;
			color: #3E3A39;
		}

		.photo {
			margin-right: 27rpx;
			letter-spacing: 20rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			background: linear-gradient(to right, rgba(252, 255, 255, 1), rgba(173, 255, 255, 1));
		}

		.loadimg {
			letter-spacing: 5rpx;
			justify-content: center;
			align-items: center;
			background: linear-gradient(to right, rgba(18, 179, 161, 1), rgba(1, 134, 142, 1));
			color: #FFFFFF;
		}
	}
</style>